package com.syscom.admin.controller;

import com.syscom.admin.service.SystemService;
import com.syscom.common.easyEntity.GenerateCodeBody;
import com.syscom.common.utils.result.AjaxResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wjz
 * @date 2020/11/20 14:34
 */
@Slf4j
@RestController
@RequestMapping("/system")
public class SystemController {

    @Autowired
    private SystemService systemService;

    @GetMapping("/generateCode")
    public AjaxResult generateCode(GenerateCodeBody generateCodeBody) throws Exception {

        return systemService.generateCode(generateCodeBody);
    }
}
